<?php
	// Includes obligatorios
	include ('./dbconfig.php');
	include ('../Libraries/Tools/JLTools.class.php');
	
	// Objeto JLTools
	$jl = new JLTools();
	
	if(isset($_GET['id'])) $where = " WHERE int_id_gallery = '".$_GET['id']."'";
	
	$SQL = "SELECT 
      int_id_image,
      var_name_image_html,
      var_name_image
    FROM tbl_images ".$where;
   	$campoId = "int_id_image";
 
	$jl->dataGridJSON( $cnn, $SQL, $campoId ); 

	// Cerrar la coneccion obligatorio
	mysql_close($cnn); 
?>